use rusqlite::{params, Connection, Result};

pub fn init_server_db() -> Result<()> {
	let conn = Connection::open("server_database.db")?;
    let sql =include_str!("../sql/server_db.sql");
	for statemente in sql.split(";"){
        if !statemente.trim().is_empty(){
            conn.execute(statemente, params![])?;
        }
    }
	Ok(())
}

